package com.molyfun.parents.view;

import android.app.AlertDialog;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.widget.ImageView;

import com.molyfun.parents.R;


public class ZhiboLoadingDialog extends AlertDialog {

    private ImageView mLoadingImg;

    public ZhiboLoadingDialog(Context context) {
        super(context, R.style.BaseDialog);
    }

    public ZhiboLoadingDialog(Context context, int theme) {
        super(context, theme);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_zhibo_loading_dialog);
        mLoadingImg = (ImageView) findViewById(R.id.loading_img);
        AnimationDrawable animationDrawable = (AnimationDrawable) mLoadingImg.getDrawable();
        animationDrawable.start();
    }

}
